package com.example.configdemo.controller;

/*
 * @author zzr
 * @date: 2025/09/19  10:59
 * @description:
 */

import com.example.configdemo.bean.MapConfig;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class MapController {
    @Autowired
    private MapConfig mapConfig;

    @RequestMapping("/read3")
    public String readMap() {
        return mapConfig.toString();
    }
}
